﻿@*<ul class="nav">
    @if (Roles.IsUserInRole("admin"))
    {
        <li>@Html.ActionLink("Control", "Index", "Admin", new {area="ScrumAdmin"})</li>
    }
    else if (Roles.IsUserInRole("user"))
    {
        <li>@Html.ActionLink("Dashboard", "Index", "Dashboard", new {area="ScrumUser"})</li>
    }
</ul>*@
<ul class="nav pull-right">
@if (Request.IsAuthenticated) {
    <li>
        @Html.ActionLink(User.Identity.Name, "Manage", "DashBoard", routeValues:null, htmlAttributes: new { @class = "Email", title = "Manage" })
    </li>
    <li class="unlink">@using (Html.BeginForm("LogOff", "DashBoard", FormMethod.Post, new { id = "logoutForm" }))
                       {
        @Html.AntiForgeryToken()
            <a class="btn-small btn-info" href="javascript:document.getElementById('logoutForm').submit()">Logout</a>
    }
    </li>
    }
else {
    <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { @class = "meniitem",id = "registerLink" })</li>
    <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new {@class = "meniitem", id = "loginLink" })</li>
}
</ul>
